package NoPattern.day01.Demo02;

import org.w3c.dom.ls.LSOutput;

public class Animals {
    public String isAlive="活着";
    public int age;

    public void move(){
        System.out.println("我是个动物，会运动的物体");
    }

    public void breath(){
        System.out.println("我是个动物，我会呼吸，我"+isAlive+"的");
    }
}

class birdAnimals extends Animals{
    public String color;

    @Override
    public void move(){
        System.out.println("我是鸟类，我会飞");
        System.out.println("我是鸟类，我"+isAlive+"的");
    }
    public void song(){
        System.out.println("我是鸟类 我会唱歌");
    }
    public void whatColor(){
        System.out.println("我是鸟类，我有羽毛,我的羽毛是"+color+"色");
    }
}
class eatMilkAnimals extends Animals{
    public double wenDu;

    public void getWenDu(){
        System.out.println("我是哺乳动物，我有温度，我的温度是"+wenDu);
    }

    @Override
    public void move() {
        System.out.println("我是哺乳动物，我会跑");
    }
}

class creepAnimals extends Animals{
    public String isLq;

    public void isIsLq(){
        System.out.println("我是"+isLq+"爬行动物");
    }

    @Override
    public void move() {
        System.out.println("我是爬行动物，我爬");
    }
}




